/*
 *  Texture.h
 *  GLRender
 *
 *  Created by Teseo on 18.05.10.
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
 *
 */


#ifndef TEXTURE_H
#define TEXTURE_H

#include "Base.h"
#include <QtOpenGL>

class Texture{

private:
	GLuint name;
	GLenum texTarget;
	
	bool bounded;
public:
	Texture();
	Texture(const char* path);
	~Texture(){
		clear();
	}
	
	inline
	const GLuint getName() const { return name;} 
	
	void bind(const char* imgPath);
	void bind();
	void disable();
	void enable();
	void clear();
};

#endif
